home *** CD-ROM | disk | FTP | other *** search
/ Gamecube Preview CD ROM / 04 - Gamecube Preview CD-ROM.iso / pc / site / gamecube.swf / scripts / frame_2 / DoAction_2.as next >
Encoding:
Text File  |  2001-09-17  |  8.4 KB  |  289 lines

  1. function moveCirc(name, select)
  2. {
  3.    _root.name = name;
  4.    _root.select = select;
  5.    _root.displayName(name,select);
  6.    subsection = section.substring(0,8);
  7.    if(section == "home" && select == 1)
  8.    {
  9.       section = "system";
  10.       rings.gotoAndPlay("to2from1");
  11.       rings.ring1.ring1.gotoAndStop(system);
  12.       rings.ring2.ring2.gotoAndStop(home);
  13.       rings.ring2.ring2.light.gotoAndStop(2);
  14.       rings.ring2.ring2.light.block._visible = 1;
  15.       ringSound.start();
  16.    }
  17.    else if(section == "home" && select == 2)
  18.    {
  19.       section = "connect";
  20.       rings.gotoAndPlay("to2from1");
  21.       rings.ring1.ring1.gotoAndStop(connect);
  22.       rings.ring2.ring2.gotoAndStop(home);
  23.       rings.ring2.ring2.light.gotoAndStop(3);
  24.       rings.ring2.ring2.light.block._visible = 1;
  25.       ringSound.start();
  26.    }
  27.    else if(section == "home" && select == 3)
  28.    {
  29.       section = "games";
  30.       rings.gotoAndPlay("to2from1");
  31.       rings.ring1.ring1.gotoAndStop(games);
  32.       rings.ring2.ring2.gotoAndStop(home);
  33.       rings.ring2.ring2.light.gotoAndStop(4);
  34.       rings.ring2.ring2.light.block._visible = 1;
  35.       ringSound.start();
  36.    }
  37.    else if(section == "system" && select == 1 && name == "ring1")
  38.    {
  39.       currentgame = 16;
  40.       _root.nextFrame();
  41.       rings.ring1.ring1.light.gotoAndStop(select + 1);
  42.       rings.ring1.ring1.light.block._visible = 0;
  43.       outSound.start();
  44.    }
  45.    else if(section == "system" && select == 2 && name == "ring1")
  46.    {
  47.       currentgame = 17;
  48.       _root.nextFrame();
  49.       rings.ring1.ring1.light.gotoAndStop(select + 1);
  50.       rings.ring1.ring1.light.block._visible = 0;
  51.       outSound.start();
  52.    }
  53.    else if(section == "system" && select == 3 && name == "ring1")
  54.    {
  55.       currentgame = 18;
  56.       _root.nextFrame();
  57.       rings.ring1.ring1.light.gotoAndStop(select + 1);
  58.       rings.ring1.ring1.light.block._visible = 0;
  59.       outSound.start();
  60.    }
  61.    else if(section == "system" && name == "ring2")
  62.    {
  63.       section = "home";
  64.       rings.gotoAndPlay("back1from2");
  65.       rings.ring1.ring1.gotoAndStop(system);
  66.       rings.ring2.ring2.gotoAndStop(home);
  67.       rings.ring2.ring2.light.gotoAndStop(1);
  68.       rings.ring2.ring2.light.block._visible = 0;
  69.       ringSound.start();
  70.    }
  71.    else if(section == "connect" && select == 1 && name == "ring1")
  72.    {
  73.       section = "connectlinks";
  74.       rings.gotoAndPlay("to3from2");
  75.       rings.ring1.ring1.gotoAndStop(connectlinks);
  76.       rings.ring2.ring2.gotoAndStop(connect);
  77.       rings.ring3.ring3.gotoAndStop(home);
  78.       rings.ring2.ring2.light.gotoAndStop(select + 1);
  79.       rings.ring2.ring2.light.block._visible = 1;
  80.       rings.ring3.ring3.light.gotoAndStop(3);
  81.       rings.ring3.ring3.light.block._visible = 1;
  82.       ringSound.start();
  83.    }
  84.    else if(section == "connect" && select == 2 && name == "ring1")
  85.    {
  86.       currentgame = 15;
  87.       _root.nextFrame();
  88.       outSound.start();
  89.    }
  90.    else if(section == "connect" && name == "ring2")
  91.    {
  92.       section = "home";
  93.       rings.gotoAndPlay("back1from2");
  94.       rings.ring1.ring1.gotoAndStop(connect);
  95.       rings.ring2.ring2.gotoAndStop(home);
  96.       rings.ring1.ring1.light.gotoAndStop(0);
  97.       rings.ring1.ring1.light.block._visible = 0;
  98.       rings.ring2.ring2.light.gotoAndStop(select + 1);
  99.       rings.ring2.ring2.light.block._visible = 0;
  100.       ringSound.start();
  101.    }
  102.    else if(section == "connectlinks" && name == "ring1")
  103.    {
  104.       if(_root.browser == "iewin")
  105.       {
  106.          getURL("javascript:void openFullChromeWindow(\'" add eval("_root.connectlink" + select) add "\', \'external\')","");
  107.       }
  108.       else
  109.       {
  110.          getURL("popper.html?url=" && eval("_root.connectlink" + select),"pop");
  111.       }
  112.       rings.ring1.ring1.light.gotoAndStop(select + 1);
  113.       rings.ring1.ring1.light.block._visible = 0;
  114.       _root.currentconnectlink = "_root.connectlink" + select;
  115.       outSound.start();
  116.    }
  117.    else if(section == "connectlinks" && name == "ring2")
  118.    {
  119.       _root.linkscopy = "";
  120.       section = "connect";
  121.       rings.gotoAndPlay("back2from3");
  122.       rings.ring1.ring1.gotoAndStop(connectlinks);
  123.       rings.ring2.ring2.gotoAndStop(connect);
  124.       rings.ring3.ring3.gotoAndStop(home);
  125.       rings.ring1.ring1.light.gotoAndStop(0);
  126.       rings.ring1.ring1.light.block._visible = 0;
  127.       rings.ring2.ring2.light.gotoAndStop(0);
  128.       rings.ring2.ring2.light.block._visible = 0;
  129.       rings.ring3.ring3.light.gotoAndStop(2);
  130.       rings.ring3.ring3.light.block._visible = 1;
  131.       _root.currentconnectlink = "";
  132.       ringSound.start();
  133.    }
  134.    else if(section == "connectlinks" && name == "ring3")
  135.    {
  136.       _root.linkscopy = "";
  137.       section = "home";
  138.       rings.gotoAndPlay("back1from3");
  139.       rings.ring1.ring1.gotoAndStop(connectlinks);
  140.       rings.ring2.ring2.gotoAndStop(connect);
  141.       rings.ring3.ring3.gotoAndStop(home);
  142.       rings.ring1.ring1.light.gotoAndStop(0);
  143.       rings.ring1.ring1.light.block._visible = 0;
  144.       rings.ring2.ring2.light.gotoAndStop(0);
  145.       rings.ring2.ring2.light.block._visible = 0;
  146.       rings.ring3.ring3.light.gotoAndStop(0);
  147.       rings.ring3.ring3.light.block._visible = 0;
  148.       _root.currentconnectlink = "";
  149.       ringSound.start();
  150.    }
  151.    else if(section == "games" && name == "ring1")
  152.    {
  153.       currentgame = select;
  154.       _root.nextFrame();
  155.       outSound.start();
  156.    }
  157.    else if(section == "games" && name == "ring2")
  158.    {
  159.       section = "home";
  160.       rings.gotoAndPlay("back1from2");
  161.       rings.ring1.ring1.gotoAndStop(games);
  162.       rings.ring2.ring2.gotoAndStop(home);
  163.       rings.ring1.ring1.light.gotoAndStop(0);
  164.       rings.ring1.ring1.light.block._visible = 0;
  165.       rings.ring2.ring2.light.gotoAndStop(0);
  166.       rings.ring2.ring2.light.block._visible = 0;
  167.       currentgame = "";
  168.       ringSound.start();
  169.    }
  170. }
  171. function displayName(name, select)
  172. {
  173.    if(_root.menu == "out")
  174.    {
  175.       _root.idiot.gotoAndPlay("hide");
  176.    }
  177.    if(section == "home")
  178.    {
  179.       path = eval("breadhome" + select);
  180.    }
  181.    else if(section == "system")
  182.    {
  183.       path = "system > " + eval("breadsystem" + select);
  184.       if(name == "ring2")
  185.       {
  186.          path = home0;
  187.       }
  188.    }
  189.    else if(section == "connect")
  190.    {
  191.       path = "connect > " + eval("breadconnect" + select);
  192.       if(name == "ring2")
  193.       {
  194.          path = home0;
  195.       }
  196.    }
  197.    else if(section == "connectlinks")
  198.    {
  199.       path = "connect > links > " + eval("breadconnectlinks" + select);
  200.       if(name == "ring2")
  201.       {
  202.          path = home2;
  203.       }
  204.       if(name == "ring3")
  205.       {
  206.          path = home0;
  207.       }
  208.    }
  209.    else if(section == "games")
  210.    {
  211.       path = "games > " + eval("breadgames" + select);
  212.       if(name == "ring2")
  213.       {
  214.          path = home0;
  215.       }
  216.    }
  217.    path = path.toUpperCase();
  218. }
  219. function displayPath(name, select)
  220. {
  221.    overSound.start();
  222.    _root.disp.gotoAndPlay("on");
  223.    if(section == "home")
  224.    {
  225.       namedisp = eval("home" + select);
  226.    }
  227.    else if(section == "system")
  228.    {
  229.       namedisp = eval("system" + select);
  230.       if(name == "ring2")
  231.       {
  232.          namedisp = "go back to\nHome";
  233.       }
  234.    }
  235.    else if(section == "connect")
  236.    {
  237.       namedisp = eval("connect" + select);
  238.       if(name == "ring2")
  239.       {
  240.          namedisp = "go back to\nHome";
  241.       }
  242.    }
  243.    else if(section == "connectlinks")
  244.    {
  245.       namedisp = eval("connectlinks" + select);
  246.       _root.linkscopy = eval("_root.linkscopy" + select);
  247.       if(name == "ring2")
  248.       {
  249.          namedisp = "go back to\nConnect";
  250.       }
  251.       if(name == "ring3")
  252.       {
  253.          namedisp = "go back to\nHome";
  254.       }
  255.    }
  256.    else if(section == "games")
  257.    {
  258.       namedisp = eval("games" + select);
  259.       if(name == "ring2")
  260.       {
  261.          namedisp = "go back to\nHome";
  262.       }
  263.    }
  264.    else if(section == "gameinfo" + currentgame)
  265.    {
  266.       namedisp = eval("gameinfo" + currentgame + select);
  267.       if(name == "ring3")
  268.       {
  269.          namedisp = "go back to\nHome";
  270.       }
  271.       if(name == "ring2")
  272.       {
  273.          namedisp = "go back to\nGames";
  274.       }
  275.    }
  276.    namedisp = namedisp.toUpperCase();
  277. }
  278. rings._visible = 1;
  279. stop();
  280. ringSound = new Sound();
  281. ringSound.attachSound("ring");
  282. outSound = new Sound();
  283. outSound.attachSound("out");
  284. overSound = new Sound();
  285. overSound.attachSound("over");
  286. ringSound.start();
  287. outSound.start();
  288. overSound.start();
  289.